let { User, Message, Comment } = require('../models');
const auth = require('../utils/auth');

// 注销
let logout_fn=async (ctx,next)=>{
    ctx.session=null;
    ctx.body={code:200,msg:'注销成功'};
}
module.exports = {
    '/logout': ['post',auth, logout_fn],
}